package com.liangsui.mss.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.liangsui.mss.domain.OrderCharge;
import com.liangsui.mss.domain.OrderChargeItem;
import com.liangsui.mss.dto.OrderChargeDto;
import com.liangsui.mss.dto.OrderChargeFromDto;
import com.liangsui.mss.vo.DataGridView;

import java.util.List;

/**
* @author zhang
* @description 针对表【his_order_charge(收费表)】的数据库操作Service
* @createDate 2022-12-06 22:36:39
*/
public interface OrderChargeService extends IService<OrderCharge> {

    void saveOrderAndItems(OrderChargeFromDto orderChargeFromDto);

    void paySuccess(String orderId, String payPlatformId);

    OrderCharge queryOrderChargeByOrderId(String orderId);

    DataGridView queryAllOrderChargeForPage(OrderChargeDto orderChargeDto);

    List<OrderChargeItem> queryOrderChargeItemByOrderId(String orderId);

    OrderChargeItem queryOrderChargeItemByItemId(String itemId);

    /**
     * 订单支付超时
     * @param orderId
     */
    void cancelPayOrder(String orderId);
}
